package com.blb.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author zyp
 * @since 2019-11-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_shelves")
public class Shelves extends Model<Shelves> {

    private static final long serialVersionUID=1L;

    private String id;

    private String shelvesNo;

    private String wareId;

    private String damId;

    private String mainProduct;

    private Integer totalNum;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date creatTime;

    private String status;

    private String remark;

    private String companyId;

    @TableField(exist = false)
    private String goodsName;
    @TableField(exist = false)
    private String goodsNo;
    @TableField(exist = false)
    private String wareName;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
